package servlets;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import bean.ArticleAdm;

@SuppressWarnings("serial")
public class DeleteArtServlet extends HttpServlet{
	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		long aid = Long.parseLong(req.getParameter("aid"));
		ArticleAdm aa = new ArticleAdm();
		aa.deleteArt(aid);
		
		req.getRequestDispatcher("./member/mydata.jsp").forward(req, resp);
	}
}
